package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntityPlus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * 用户对象 web_user
 * 
 * @author ruoyi
 * @date 2021-05-22
 */
@ApiModel("客户信息对象")
public class WebUser extends BaseEntityPlus
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户名-条件 */
    @Excel(name = "用户名")
    @ApiModelProperty(value = "用户名",hidden = true)
    private String username;

    /** 密码 */
    @ApiModelProperty(hidden = true)
    private String password;

    /** 交易密码 */
    @ApiModelProperty(hidden = true)
    private String dealPass;

    /** 昵称 */
    @Excel(name = "昵称")
    @ApiModelProperty(value = "昵称")
    private String nickname;

    /** 真实姓名 */
    @ApiModelProperty(value = "真实姓名")
    @Excel(name = "真实姓名")
    private String realname;

    /** 微信OPENID */
    @ApiModelProperty(hidden = true)
    private String wxOpenId;

    /** qqopenID */
    @ApiModelProperty(hidden = true)
    private String qqOpenId;

    /** 手机号-条件 */
    @ApiModelProperty(value = "手机号")
    @Excel(name = "手机号")
    private String mobile;

    /** 1普通会员 2回收员 3管理者 */
    @ApiModelProperty(value = "1普通会员 2回收员 3管理者 4 快递员 5商家")
    private String userType;

    private Long recycleTypeId;

    @Excel(name = "绑定的服务项")
    private String recycleType;

    /** 0正常 1停用 */
    @Excel(name = "0正常 1停用")
    @ApiModelProperty(hidden = true)
    private Long status;

    private Integer freezeScore;

    /** 头像 */
    @Excel(name = "头像")
    @ApiModelProperty(value = "头像")
    private String headPic;

    /** 推荐人ID */
    @ApiModelProperty(hidden = true)
    private String parentId;

    /** 推荐时间 */
    @ApiModelProperty(hidden = true)
    private Date parentTime;

    /** 是否实名认证0否 1审核中 2完成审核 3未通过 */
    @Excel(name = "是否实名认证0否 1审核中 2完成审核 3未通过")
    @ApiModelProperty(value = "是否实名认证0否 1审核中 2完成审核 3未通过")
    private Integer realAuth;

    /** 推荐时间 */
    @ApiModelProperty(hidden = true)
    private Date recommDate;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(hidden = true)
    private Date lastLoginDate;

    /** 最后登录的IP */
    @ApiModelProperty(hidden = true)
    private String lastLoginIp;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "门店ID",hidden = true)
    private Long deptId;

    @ApiModelProperty(value = "所属名称",hidden = true)
    @TableField(exist = false)
    private String deptName;

    /** 推荐码 */
    @ApiModelProperty(hidden = true)
    private String recommCode;

    /** 注册来源1App 2微信 3QQ 4后台 */
    @ApiModelProperty(hidden = true)
    private Long sourceType;

    /** 密码错误数 */
    @ApiModelProperty(hidden = true)
    private Long errorCount;

    /** 收益 */
    @ApiModelProperty(hidden = true)
    private Integer earnings;

    @ApiModelProperty(hidden = true)
    private Integer score;

    @TableField(exist = false)
    @Excel(name="推荐人昵称")
    private String tuiNickname;

    @TableField(exist = false)
    @Excel(name="推荐人姓名")
    private String tuiRealname;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getTuiNickname() {
        return tuiNickname;
    }

    public void setTuiNickname(String tuiNickname) {
        this.tuiNickname = tuiNickname;
    }

    public String getTuiRealname() {
        return tuiRealname;
    }

    public void setTuiRealname(String tuiRealname) {
        this.tuiRealname = tuiRealname;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setDealPass(String dealPass) 
    {
        this.dealPass = dealPass;
    }

    public String getDealPass() 
    {
        return dealPass;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setWxOpenId(String wxOpenId) 
    {
        this.wxOpenId = wxOpenId;
    }

    public String getWxOpenId() 
    {
        return wxOpenId;
    }
    public void setQqOpenId(String qqOpenId) 
    {
        this.qqOpenId = qqOpenId;
    }

    public String getQqOpenId() 
    {
        return qqOpenId;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setHeadPic(String headPic) 
    {
        this.headPic = headPic;
    }

    public String getHeadPic() 
    {
        return headPic;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setParentTime(Date parentTime) 
    {
        this.parentTime = parentTime;
    }

    public Date getParentTime() 
    {
        return parentTime;
    }
    public void setRealAuth(Integer realAuth) 
    {
        this.realAuth = realAuth;
    }

    public Integer getRealAuth() 
    {
        return realAuth;
    }
    public void setRecommDate(Date recommDate) 
    {
        this.recommDate = recommDate;
    }

    public Date getRecommDate() 
    {
        return recommDate;
    }
    public void setLastLoginDate(Date lastLoginDate) 
    {
        this.lastLoginDate = lastLoginDate;
    }

    public Date getLastLoginDate() 
    {
        return lastLoginDate;
    }
    public void setLastLoginIp(String lastLoginIp) 
    {
        this.lastLoginIp = lastLoginIp;
    }

    public String getLastLoginIp() 
    {
        return lastLoginIp;
    }
    public void setRecommCode(String recommCode) 
    {
        this.recommCode = recommCode;
    }

    public String getRecommCode() 
    {
        return recommCode;
    }
    public void setSourceType(Long sourceType) 
    {
        this.sourceType = sourceType;
    }

    public Long getSourceType() 
    {
        return sourceType;
    }
    public void setErrorCount(Long errorCount) 
    {
        this.errorCount = errorCount;
    }

    public Long getErrorCount() 
    {
        return errorCount;
    }
    public void setEarnings(Integer earnings)
    {
        this.earnings = earnings;
    }

    public Integer getEarnings()
    {
        return earnings;
    }

    public Integer getFreezeScore() {
        return freezeScore;
    }

    public void setFreezeScore(Integer freezeScore) {
        this.freezeScore = freezeScore;
    }

    public Long getRecycleTypeId() {
        return recycleTypeId;
    }

    public void setRecycleTypeId(Long recycleTypeId) {
        this.recycleTypeId = recycleTypeId;
    }

    public String getRecycleType() {
        return recycleType;
    }

    public void setRecycleType(String recycleType) {
        this.recycleType = recycleType;
    }
}
